package com.cc.moxingvoice.ui.other;

import android.databinding.DataBindingUtil;

import com.cc.moxingvoice.R;
import com.cc.moxingvoice.base.BaseActivity;
import com.cc.moxingvoice.databinding.ActivityAboutBinding;
import com.cc.moxingvoice.lock.AboutLock;
import com.cc.moxingvoice.lock.AppBarLock;

/**
 * 创建日期：2018/2/24 on 18:13
 * 描述：
 * 作者：郭士超
 * QQ：1169380200
 */

public class AboutActivity extends BaseActivity {

    private ActivityAboutBinding mBinding;
    private AboutLock mLock;
    private AppBarLock appBarLock;

    @Override
    protected void initBinding() {
        // 数据绑定操作，可以套用代码
        mBinding = DataBindingUtil.setContentView(this, R.layout.activity_about);
        mLock = new AboutLock(this, mBinding);
        mBinding.setLock(mLock);
        appBarLock = new AppBarLock(this, mLock, "关于", true);
        mBinding.appBar.setAppBarLock(appBarLock);
    }

    @Override
    protected void init() {
        // 使TextView可以滑动                android:scrollbars="vertical"
//        mBinding.tvAbout.setMovementMethod(new ScrollingMovementMethod());
    }

}
